﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace MuzoBlog.Core.BussinessLogic.Email
{
    public class EmailManager
    {
        private static SmtpClient _smtpClient;

        static EmailManager()
        {
            _smtpClient = SmtpClientFactory.CreateSmtpClient();
        }

        public static void Send(MailMessage mailMessage)
        {
            if (mailMessage == null)
                throw new ArgumentException("mailMessage");

            _smtpClient.Send(mailMessage);
        }

        // TODO: MailMessage generate ederken xslt yi kullan paşa yada html template yap, bide gitmezse logla
    }
}